<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TVgcanvas类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_t_vgcanvas-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TVgcanvas类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8da487fc7bca46debaaf7a6bbdb4f7c9"><td class="memItemLeft" align="right" valign="top"><a id="a8da487fc7bca46debaaf7a6bbdb4f7c9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TVgcanvas</b> (vgcanvas_t *nativeObj)</td></tr>
<tr class="separator:a8da487fc7bca46debaaf7a6bbdb4f7c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46b9aa37b084c67d8d45f4e8bd2dceb2"><td class="memItemLeft" align="right" valign="top"><a id="a46b9aa37b084c67d8d45f4e8bd2dceb2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TVgcanvas</b> (const vgcanvas_t *nativeObj)</td></tr>
<tr class="separator:a46b9aa37b084c67d8d45f4e8bd2dceb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cef1db770b88a58da3eae2dd9f8d3d3"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a4cef1db770b88a58da3eae2dd9f8d3d3">Flush</a> ()</td></tr>
<tr class="separator:a4cef1db770b88a58da3eae2dd9f8d3d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a819ec931c06d394df2720118034d3382"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a819ec931c06d394df2720118034d3382">BeginPath</a> ()</td></tr>
<tr class="separator:a819ec931c06d394df2720118034d3382"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04307255f89dbaa71898477d2257c970"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a04307255f89dbaa71898477d2257c970">MoveTo</a> (float_t x, float_t y)</td></tr>
<tr class="separator:a04307255f89dbaa71898477d2257c970"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a154dd9254aa7b4c1e694e4bd6dab2dc3"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a154dd9254aa7b4c1e694e4bd6dab2dc3">LineTo</a> (float_t x, float_t y)</td></tr>
<tr class="separator:a154dd9254aa7b4c1e694e4bd6dab2dc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4088321865d88a1f24902f4ae337d693"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a4088321865d88a1f24902f4ae337d693">QuadTo</a> (float_t cpx, float_t cpy, float_t x, float_t y)</td></tr>
<tr class="separator:a4088321865d88a1f24902f4ae337d693"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a051655be838ec0ab08aeb9d991049ad3"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a051655be838ec0ab08aeb9d991049ad3">BezierTo</a> (float_t cp1x, float_t cp1y, float_t cp2x, float_t cp2y, float_t x, float_t y)</td></tr>
<tr class="separator:a051655be838ec0ab08aeb9d991049ad3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe69c74ebac3fccc57cbfafbf7ddf9b8"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#afe69c74ebac3fccc57cbfafbf7ddf9b8">ArcTo</a> (float_t x1, float_t y1, float_t x2, float_t y2, float_t r)</td></tr>
<tr class="separator:afe69c74ebac3fccc57cbfafbf7ddf9b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a526c1eb6abb162b159fca0582d9b0c40"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a526c1eb6abb162b159fca0582d9b0c40">Arc</a> (float_t x, float_t y, float_t r, float_t start_angle, float_t end_angle, bool ccw)</td></tr>
<tr class="separator:a526c1eb6abb162b159fca0582d9b0c40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8db0583e1905a0c72b13b0870a58d38"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#af8db0583e1905a0c72b13b0870a58d38">IsPointInPath</a> (float_t x, float_t y)</td></tr>
<tr class="separator:af8db0583e1905a0c72b13b0870a58d38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07feea57b3ba5566c341f1ff06d90f92"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a07feea57b3ba5566c341f1ff06d90f92">Rect</a> (float_t x, float_t y, float_t w, float_t h)</td></tr>
<tr class="separator:a07feea57b3ba5566c341f1ff06d90f92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a069e7639457908edfd9e37e804e83ac2"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a069e7639457908edfd9e37e804e83ac2">RoundedRect</a> (float_t x, float_t y, float_t w, float_t h, float_t r)</td></tr>
<tr class="separator:a069e7639457908edfd9e37e804e83ac2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a481191e63898c7baef8552bc662e49dc"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a481191e63898c7baef8552bc662e49dc">Ellipse</a> (float_t x, float_t y, float_t rx, float_t ry)</td></tr>
<tr class="separator:a481191e63898c7baef8552bc662e49dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a093edb0bc723b63f6cec458bcbd7aa5c"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a093edb0bc723b63f6cec458bcbd7aa5c">ClosePath</a> ()</td></tr>
<tr class="separator:a093edb0bc723b63f6cec458bcbd7aa5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af61cd3dd4d904843c1d0c9e979c1b47c"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#af61cd3dd4d904843c1d0c9e979c1b47c">PathWinding</a> (bool dir)</td></tr>
<tr class="separator:af61cd3dd4d904843c1d0c9e979c1b47c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4692739271712eaec24aeabf3d43c566"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a4692739271712eaec24aeabf3d43c566">Rotate</a> (float_t rad)</td></tr>
<tr class="separator:a4692739271712eaec24aeabf3d43c566"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8803bf0876568ea4abe87fd7cc68944f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a8803bf0876568ea4abe87fd7cc68944f">Scale</a> (float_t x, float_t y)</td></tr>
<tr class="separator:a8803bf0876568ea4abe87fd7cc68944f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a7f7a772b7bb7fac8a8ba2b4e54b797"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a6a7f7a772b7bb7fac8a8ba2b4e54b797">Translate</a> (float_t x, float_t y)</td></tr>
<tr class="separator:a6a7f7a772b7bb7fac8a8ba2b4e54b797"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d89dbb4ee1d187ae5353c3d233a9d49"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a7d89dbb4ee1d187ae5353c3d233a9d49">Transform</a> (float_t a, float_t b, float_t c, float_t d, float_t e, float_t f)</td></tr>
<tr class="separator:a7d89dbb4ee1d187ae5353c3d233a9d49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4361859d7b511a8bfcfcdeac7b3ee169"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a4361859d7b511a8bfcfcdeac7b3ee169">SetTransform</a> (float_t a, float_t b, float_t c, float_t d, float_t e, float_t f)</td></tr>
<tr class="separator:a4361859d7b511a8bfcfcdeac7b3ee169"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaaff4d506749c7a205af49f8010c5e02"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#aaaff4d506749c7a205af49f8010c5e02">ClipPath</a> ()</td></tr>
<tr class="separator:aaaff4d506749c7a205af49f8010c5e02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac99bd1226ef6915519163e363432b5d8"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ac99bd1226ef6915519163e363432b5d8">ClipRect</a> (float_t x, float_t y, float_t w, float_t h)</td></tr>
<tr class="separator:ac99bd1226ef6915519163e363432b5d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0e97e81a0cf8e3a542ec93df1663e26"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ae0e97e81a0cf8e3a542ec93df1663e26">IsRectfInClipRect</a> (float_t left, float_t top, float_t right, float_t bottom)</td></tr>
<tr class="separator:ae0e97e81a0cf8e3a542ec93df1663e26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae65059743e0039d06efddfd077a84b73"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ae65059743e0039d06efddfd077a84b73">IntersectClipRect</a> (float_t x, float_t y, float_t w, float_t h)</td></tr>
<tr class="separator:ae65059743e0039d06efddfd077a84b73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14f818062de7fa7926b2e7d5ce8e189d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a14f818062de7fa7926b2e7d5ce8e189d">Fill</a> ()</td></tr>
<tr class="separator:a14f818062de7fa7926b2e7d5ce8e189d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a280cbf1d9b4ef38763216f0ea9ea0c0a"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a280cbf1d9b4ef38763216f0ea9ea0c0a">Stroke</a> ()</td></tr>
<tr class="separator:a280cbf1d9b4ef38763216f0ea9ea0c0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f2dd9b173b9da2f15719a8694863e9f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a7f2dd9b173b9da2f15719a8694863e9f">Paint</a> (bool stroke, <a class="el" href="class_t_bitmap.html">TBitmap</a> &amp;img)</td></tr>
<tr class="separator:a7f2dd9b173b9da2f15719a8694863e9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c0e5d77bba67fb1a4efea9d33c6a62"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#af6c0e5d77bba67fb1a4efea9d33c6a62">SetFont</a> (const char *font)</td></tr>
<tr class="separator:af6c0e5d77bba67fb1a4efea9d33c6a62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a634f4ea1ccab2c702a134054d3d56f42"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a634f4ea1ccab2c702a134054d3d56f42">SetFontSize</a> (float_t size)</td></tr>
<tr class="separator:a634f4ea1ccab2c702a134054d3d56f42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad16bdbbca115556988f0d442d8d6b460"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ad16bdbbca115556988f0d442d8d6b460">SetTextAlign</a> (const char *value)</td></tr>
<tr class="separator:ad16bdbbca115556988f0d442d8d6b460"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d60da8b841152856c5b352361c1540a"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a7d60da8b841152856c5b352361c1540a">SetTextBaseline</a> (const char *value)</td></tr>
<tr class="separator:a7d60da8b841152856c5b352361c1540a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad52e8fb00145fe90783ef4c279540aa5"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ad52e8fb00145fe90783ef4c279540aa5">FillText</a> (const char *text, float_t x, float_t y, float_t max_width)</td></tr>
<tr class="separator:ad52e8fb00145fe90783ef4c279540aa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c0d31eb69398b195d4143e03a1fa6d5"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a9c0d31eb69398b195d4143e03a1fa6d5">MeasureText</a> (const char *text)</td></tr>
<tr class="separator:a9c0d31eb69398b195d4143e03a1fa6d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afeecd9b59291fbced10e03dc83348c49"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#afeecd9b59291fbced10e03dc83348c49">DrawImage</a> (<a class="el" href="class_t_bitmap.html">TBitmap</a> &amp;img, float_t sx, float_t sy, float_t sw, float_t sh, float_t dx, float_t dy, float_t dw, float_t dh)</td></tr>
<tr class="separator:afeecd9b59291fbced10e03dc83348c49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a626925e5174c21b5e9492acf74eacc"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a0a626925e5174c21b5e9492acf74eacc">DrawImageRepeat</a> (<a class="el" href="class_t_bitmap.html">TBitmap</a> &amp;img, float_t sx, float_t sy, float_t sw, float_t sh, float_t dx, float_t dy, float_t dw, float_t dh, float_t dst_w, float_t dst_h)</td></tr>
<tr class="separator:a0a626925e5174c21b5e9492acf74eacc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cdf27f516c7a3d42ec4e3b75f487d07"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a5cdf27f516c7a3d42ec4e3b75f487d07">DrawIcon</a> (<a class="el" href="class_t_bitmap.html">TBitmap</a> &amp;img, float_t sx, float_t sy, float_t sw, float_t sh, float_t dx, float_t dy, float_t dw, float_t dh)</td></tr>
<tr class="separator:a5cdf27f516c7a3d42ec4e3b75f487d07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04ee2510e3ce41575ea38dc120ae88ff"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a04ee2510e3ce41575ea38dc120ae88ff">SetAntialias</a> (bool value)</td></tr>
<tr class="separator:a04ee2510e3ce41575ea38dc120ae88ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a113b766d6cb99eaddd791ca095930a16"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a113b766d6cb99eaddd791ca095930a16">SetGlobalAlpha</a> (float_t alpha)</td></tr>
<tr class="separator:a113b766d6cb99eaddd791ca095930a16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1373d9f061e4c78e9a042c4b674b322b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a1373d9f061e4c78e9a042c4b674b322b">SetLineWidth</a> (float_t value)</td></tr>
<tr class="separator:a1373d9f061e4c78e9a042c4b674b322b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1ae81672a3b230cb19c30f869735fa7"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ac1ae81672a3b230cb19c30f869735fa7">SetFillColor</a> (const char *color)</td></tr>
<tr class="separator:ac1ae81672a3b230cb19c30f869735fa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a695215d68840f5d8d4d30edfa6006e1b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a695215d68840f5d8d4d30edfa6006e1b">SetStrokeColor</a> (const char *str)</td></tr>
<tr class="separator:a695215d68840f5d8d4d30edfa6006e1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9043ed910653bb801719dae642bdbf03"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a9043ed910653bb801719dae642bdbf03">SetLineCap</a> (const char *value)</td></tr>
<tr class="separator:a9043ed910653bb801719dae642bdbf03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf0f4083b74ea9f71a5f514ec912ff67"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#abf0f4083b74ea9f71a5f514ec912ff67">SetLineJoin</a> (const char *value)</td></tr>
<tr class="separator:abf0f4083b74ea9f71a5f514ec912ff67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab47443dde40a320efbb538c4d83ccfce"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ab47443dde40a320efbb538c4d83ccfce">SetMiterLimit</a> (float_t value)</td></tr>
<tr class="separator:ab47443dde40a320efbb538c4d83ccfce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a074352d2dbc7bc0e24470f0bd2d57790"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a074352d2dbc7bc0e24470f0bd2d57790">Save</a> ()</td></tr>
<tr class="separator:a074352d2dbc7bc0e24470f0bd2d57790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae12a84c37394b11f68b76e585cb22ef8"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ae12a84c37394b11f68b76e585cb22ef8">Restore</a> ()</td></tr>
<tr class="separator:ae12a84c37394b11f68b76e585cb22ef8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e3416658aff4d96d156c42846d7a152"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a5e3416658aff4d96d156c42846d7a152">GetW</a> () const</td></tr>
<tr class="separator:a5e3416658aff4d96d156c42846d7a152"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54282e8ecc519bf2d2ae79a474943997"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a54282e8ecc519bf2d2ae79a474943997">GetH</a> () const</td></tr>
<tr class="separator:a54282e8ecc519bf2d2ae79a474943997"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cc0c4ea765b406bf03f13e2d1c7378b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a0cc0c4ea765b406bf03f13e2d1c7378b">GetStride</a> () const</td></tr>
<tr class="separator:a0cc0c4ea765b406bf03f13e2d1c7378b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a096df74fa271a79f3a63fba08e17d6"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a9a096df74fa271a79f3a63fba08e17d6">GetRatio</a> () const</td></tr>
<tr class="separator:a9a096df74fa271a79f3a63fba08e17d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a156b11c494e93e836b48c0629f7229d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a156b11c494e93e836b48c0629f7229d2">GetAntiAlias</a> () const</td></tr>
<tr class="separator:a156b11c494e93e836b48c0629f7229d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac37e1b6d825bb5e67511fbccdf242394"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ac37e1b6d825bb5e67511fbccdf242394">GetLineWidth</a> () const</td></tr>
<tr class="separator:ac37e1b6d825bb5e67511fbccdf242394"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b1ebab17b8201ee76ca149f98db21c6"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a3b1ebab17b8201ee76ca149f98db21c6">GetGlobalAlpha</a> () const</td></tr>
<tr class="separator:a3b1ebab17b8201ee76ca149f98db21c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae95c4e0fe292c9e612ec85372f4afaa0"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ae95c4e0fe292c9e612ec85372f4afaa0">GetMiterLimit</a> () const</td></tr>
<tr class="separator:ae95c4e0fe292c9e612ec85372f4afaa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6edf3c948fd31b221a71db1a6d1586d"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#af6edf3c948fd31b221a71db1a6d1586d">GetLineCap</a> () const</td></tr>
<tr class="separator:af6edf3c948fd31b221a71db1a6d1586d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab24485b67f43dc3874f9a18195cdf244"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ab24485b67f43dc3874f9a18195cdf244">GetLineJoin</a> () const</td></tr>
<tr class="separator:ab24485b67f43dc3874f9a18195cdf244"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3651360ace843556822e241601da270e"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a3651360ace843556822e241601da270e">GetFont</a> () const</td></tr>
<tr class="separator:a3651360ace843556822e241601da270e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1135c99ae31ced3c27017e318725bdf"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ab1135c99ae31ced3c27017e318725bdf">GetFontSize</a> () const</td></tr>
<tr class="separator:ab1135c99ae31ced3c27017e318725bdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc152da64163be4115110a65afb0eef"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#a4dc152da64163be4115110a65afb0eef">GetTextAlign</a> () const</td></tr>
<tr class="separator:a4dc152da64163be4115110a65afb0eef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae992f9687fa432f35b485abd51d543f3"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_vgcanvas.html#ae992f9687fa432f35b485abd51d543f3">GetTextBaseline</a> () const</td></tr>
<tr class="separator:ae992f9687fa432f35b485abd51d543f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a50a446341fc2d775b01124f8e68d14a8"><td class="memItemLeft" align="right" valign="top"><a id="a50a446341fc2d775b01124f8e68d14a8"></a>
static <a class="el" href="class_t_vgcanvas.html">TVgcanvas</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (vgcanvas_t *nativeObj)</td></tr>
<tr class="separator:a50a446341fc2d775b01124f8e68d14a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac65050eb57f22cabd69ccff1fe46acfe"><td class="memItemLeft" align="right" valign="top"><a id="ac65050eb57f22cabd69ccff1fe46acfe"></a>
static <a class="el" href="class_t_vgcanvas.html">TVgcanvas</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const vgcanvas_t *nativeObj)</td></tr>
<tr class="separator:ac65050eb57f22cabd69ccff1fe46acfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a24ec739753eb71e8c93623c0797b3150"><td class="memItemLeft" align="right" valign="top"><a id="a24ec739753eb71e8c93623c0797b3150"></a>
vgcanvas_t *&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a24ec739753eb71e8c93623c0797b3150"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>矢量图画布抽象基类。</p>
<p>具体实现时可以使用agg，nanovg, cairo和skia等方式。</p>
<p>cairo和skia体积太大，不适合嵌入式平台，但在PC平台也是一种选择。</p>
<p>目前我们只提供了基于nanovg的实现，支持软件渲染和硬件渲染。</p>
<p>我们对nanovg进行了一些改进:</p>
<p>可以用agg/agge实现软件渲染(暂时不支持文本绘制)。</p>
<p>可以用bgfx使用DirectX(Windows平台)和Metal(iOS)平台硬件加速。</p>
<p>示例：</p>
<p>&gt;请参考：https://www.w3schools.com/tags/ref_canvas.asp </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a526c1eb6abb162b159fca0582d9b0c40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a526c1eb6abb162b159fca0582d9b0c40">&#9670;&nbsp;</a></span>Arc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Arc </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>start_angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>end_angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ccw</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成一条圆弧。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>原点x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>原点y坐标。 </td></tr>
    <tr><td class="paramname">r</td><td>半径。 </td></tr>
    <tr><td class="paramname">start_angle</td><td>起始角度。 </td></tr>
    <tr><td class="paramname">end_angle</td><td>结束角度。 </td></tr>
    <tr><td class="paramname">ccw</td><td>是否逆时针。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="afe69c74ebac3fccc57cbfafbf7ddf9b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe69c74ebac3fccc57cbfafbf7ddf9b8">&#9670;&nbsp;</a></span>ArcTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::ArcTo </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成一条圆弧路径到指定点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x1</td><td>起始点x坐标。 </td></tr>
    <tr><td class="paramname">y1</td><td>起始点y坐标。 </td></tr>
    <tr><td class="paramname">x2</td><td>结束点x坐标。 </td></tr>
    <tr><td class="paramname">y2</td><td>结束点y坐标。 </td></tr>
    <tr><td class="paramname">r</td><td>半径。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a819ec931c06d394df2720118034d3382"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a819ec931c06d394df2720118034d3382">&#9670;&nbsp;</a></span>BeginPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::BeginPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>清除之前的路径，并重新开始一条路径。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a051655be838ec0ab08aeb9d991049ad3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a051655be838ec0ab08aeb9d991049ad3">&#9670;&nbsp;</a></span>BezierTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::BezierTo </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>cp1x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>cp1y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>cp2x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>cp2y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成一条三次贝塞尔曲线。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cp1x</td><td>控制点1x坐标。 </td></tr>
    <tr><td class="paramname">cp1y</td><td>控制点1y坐标。 </td></tr>
    <tr><td class="paramname">cp2x</td><td>控制点2x坐标。 </td></tr>
    <tr><td class="paramname">cp2y</td><td>控制点2y坐标。 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aaaff4d506749c7a205af49f8010c5e02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaaff4d506749c7a205af49f8010c5e02">&#9670;&nbsp;</a></span>ClipPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::ClipPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>使用当前的path裁剪。 &gt;目前只有部分backend支持(如cairo)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac99bd1226ef6915519163e363432b5d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac99bd1226ef6915519163e363432b5d8">&#9670;&nbsp;</a></span>ClipRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::ClipRect </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>矩形裁剪。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">w</td><td>宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a093edb0bc723b63f6cec458bcbd7aa5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a093edb0bc723b63f6cec458bcbd7aa5c">&#9670;&nbsp;</a></span>ClosePath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::ClosePath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>闭合路径。</p>
<p>&gt;闭合路径是指把起点和终点连接起来，形成一个封闭的多边形。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5cdf27f516c7a3d42ec4e3b75f487d07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cdf27f516c7a3d42ec4e3b75f487d07">&#9670;&nbsp;</a></span>DrawIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::DrawIcon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_bitmap.html">TBitmap</a> &amp;&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>绘制图标。</p>
<p>绘制图标时会根据屏幕密度进行自动缩放，而绘制普通图片时不会。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>图片。 </td></tr>
    <tr><td class="paramname">sx</td><td>sx </td></tr>
    <tr><td class="paramname">sy</td><td>sy </td></tr>
    <tr><td class="paramname">sw</td><td>sw </td></tr>
    <tr><td class="paramname">sh</td><td>sh </td></tr>
    <tr><td class="paramname">dx</td><td>dx </td></tr>
    <tr><td class="paramname">dy</td><td>dy </td></tr>
    <tr><td class="paramname">dw</td><td>dw </td></tr>
    <tr><td class="paramname">dh</td><td>dh</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="afeecd9b59291fbced10e03dc83348c49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afeecd9b59291fbced10e03dc83348c49">&#9670;&nbsp;</a></span>DrawImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::DrawImage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_bitmap.html">TBitmap</a> &amp;&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>绘制图片。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>图片。 </td></tr>
    <tr><td class="paramname">sx</td><td>sx </td></tr>
    <tr><td class="paramname">sy</td><td>sy </td></tr>
    <tr><td class="paramname">sw</td><td>sw </td></tr>
    <tr><td class="paramname">sh</td><td>sh </td></tr>
    <tr><td class="paramname">dx</td><td>dx </td></tr>
    <tr><td class="paramname">dy</td><td>dy </td></tr>
    <tr><td class="paramname">dw</td><td>dw </td></tr>
    <tr><td class="paramname">dh</td><td>dh</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0a626925e5174c21b5e9492acf74eacc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a626925e5174c21b5e9492acf74eacc">&#9670;&nbsp;</a></span>DrawImageRepeat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::DrawImageRepeat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_bitmap.html">TBitmap</a> &amp;&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>sh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dst_w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>dst_h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>绘制图片。</p>
<p>备注： 当绘制区域大于原图区域时，多余的绘制区域会重复绘制原图区域的东西。（绘制图区按照绘制图片的宽高来绘制的） 当绘制图片的宽高和原图的不同，在重复绘制的同时加入缩放。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>图片。 </td></tr>
    <tr><td class="paramname">sx</td><td>原图区域的 x </td></tr>
    <tr><td class="paramname">sy</td><td>原图区域的 y </td></tr>
    <tr><td class="paramname">sw</td><td>原图区域的 w </td></tr>
    <tr><td class="paramname">sh</td><td>原图区域的 h </td></tr>
    <tr><td class="paramname">dx</td><td>绘制区域的 x </td></tr>
    <tr><td class="paramname">dy</td><td>绘制区域的 y </td></tr>
    <tr><td class="paramname">dw</td><td>绘制区域的 w </td></tr>
    <tr><td class="paramname">dh</td><td>绘制区域的 h </td></tr>
    <tr><td class="paramname">dst_w</td><td>绘制图片的宽 </td></tr>
    <tr><td class="paramname">dst_h</td><td>绘制图片的高</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a481191e63898c7baef8552bc662e49dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a481191e63898c7baef8552bc662e49dc">&#9670;&nbsp;</a></span>Ellipse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Ellipse </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>rx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>ry</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成一个椭圆路径。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">rx</td><td>圆角半径。 </td></tr>
    <tr><td class="paramname">ry</td><td>圆角半径。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a14f818062de7fa7926b2e7d5ce8e189d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14f818062de7fa7926b2e7d5ce8e189d">&#9670;&nbsp;</a></span>Fill()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Fill </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>填充多边形。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad52e8fb00145fe90783ef4c279540aa5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad52e8fb00145fe90783ef4c279540aa5">&#9670;&nbsp;</a></span>FillText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::FillText </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>max_width</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>绘制文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>text </td></tr>
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">max_width</td><td>最大宽度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4cef1db770b88a58da3eae2dd9f8d3d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cef1db770b88a58da3eae2dd9f8d3d3">&#9670;&nbsp;</a></span>Flush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Flush </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>flush</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a156b11c494e93e836b48c0629f7229d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a156b11c494e93e836b48c0629f7229d2">&#9670;&nbsp;</a></span>GetAntiAlias()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TVgcanvas::GetAntiAlias </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否启用反走样功能。 </p>

</div>
</div>
<a id="a3651360ace843556822e241601da270e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3651360ace843556822e241601da270e">&#9670;&nbsp;</a></span>GetFont()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TVgcanvas::GetFont </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>字体。 </p>

</div>
</div>
<a id="ab1135c99ae31ced3c27017e318725bdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1135c99ae31ced3c27017e318725bdf">&#9670;&nbsp;</a></span>GetFontSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TVgcanvas::GetFontSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>字体大小。 </p>

</div>
</div>
<a id="a3b1ebab17b8201ee76ca149f98db21c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b1ebab17b8201ee76ca149f98db21c6">&#9670;&nbsp;</a></span>GetGlobalAlpha()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TVgcanvas::GetGlobalAlpha </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>全局alpha。 </p>

</div>
</div>
<a id="a54282e8ecc519bf2d2ae79a474943997"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54282e8ecc519bf2d2ae79a474943997">&#9670;&nbsp;</a></span>GetH()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TVgcanvas::GetH </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>canvas的高度 </p>

</div>
</div>
<a id="af6edf3c948fd31b221a71db1a6d1586d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6edf3c948fd31b221a71db1a6d1586d">&#9670;&nbsp;</a></span>GetLineCap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * TVgcanvas::GetLineCap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>line_cap。 </p><dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_linecap.asp">http://www.w3school.com.cn/tags/canvas_linecap.asp</a> </dd></dl>

</div>
</div>
<a id="ab24485b67f43dc3874f9a18195cdf244"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab24485b67f43dc3874f9a18195cdf244">&#9670;&nbsp;</a></span>GetLineJoin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * TVgcanvas::GetLineJoin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>line_join。 </p><dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_linejoin.asp">http://www.w3school.com.cn/tags/canvas_linejoin.asp</a> </dd></dl>

</div>
</div>
<a id="ac37e1b6d825bb5e67511fbccdf242394"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac37e1b6d825bb5e67511fbccdf242394">&#9670;&nbsp;</a></span>GetLineWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TVgcanvas::GetLineWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>线宽。 </p>

</div>
</div>
<a id="ae95c4e0fe292c9e612ec85372f4afaa0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae95c4e0fe292c9e612ec85372f4afaa0">&#9670;&nbsp;</a></span>GetMiterLimit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TVgcanvas::GetMiterLimit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>miter_limit。 </p><dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_miterlimit.asp">http://www.w3school.com.cn/tags/canvas_miterlimit.asp</a> </dd></dl>

</div>
</div>
<a id="a9a096df74fa271a79f3a63fba08e17d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a096df74fa271a79f3a63fba08e17d6">&#9670;&nbsp;</a></span>GetRatio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TVgcanvas::GetRatio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>显示比例。 </p>

</div>
</div>
<a id="a0cc0c4ea765b406bf03f13e2d1c7378b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cc0c4ea765b406bf03f13e2d1c7378b">&#9670;&nbsp;</a></span>GetStride()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TVgcanvas::GetStride </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>一行占的字节 </p>

</div>
</div>
<a id="a4dc152da64163be4115110a65afb0eef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dc152da64163be4115110a65afb0eef">&#9670;&nbsp;</a></span>GetTextAlign()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TVgcanvas::GetTextAlign </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>文本对齐方式。</p>
<dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_textalign.asp">http://www.w3school.com.cn/tags/canvas_textalign.asp</a> </dd></dl>

</div>
</div>
<a id="ae992f9687fa432f35b485abd51d543f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae992f9687fa432f35b485abd51d543f3">&#9670;&nbsp;</a></span>GetTextBaseline()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TVgcanvas::GetTextBaseline </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>文本基线。</p>
<dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_textbaseline.asp">http://www.w3school.com.cn/tags/canvas_textbaseline.asp</a> </dd></dl>

</div>
</div>
<a id="a5e3416658aff4d96d156c42846d7a152"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e3416658aff4d96d156c42846d7a152">&#9670;&nbsp;</a></span>GetW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TVgcanvas::GetW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>canvas的宽度 </p>

</div>
</div>
<a id="ae65059743e0039d06efddfd077a84b73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae65059743e0039d06efddfd077a84b73">&#9670;&nbsp;</a></span>IntersectClipRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::IntersectClipRect </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置一个与前一个裁剪区做交集的矩形裁剪区。 如果下面这种情况，则不能直接调用 rect_intersect 函数来做矩形交集和 vgcanvas_clip_rect 函数设置裁剪区，而采用本函数做交集。 由于缩放和旋转以及平移会导致 vg 的坐标系和上一个裁剪区的坐标系不同， 导致直接使用做交集的话，裁剪区会出错。</p>
<div class="fragment"><div class="line">*vgcanvas_clip_rect(vg, old_r.x, old_r.y, old_r.w, old_r.h);</div>
<div class="line">*vgcanvas_save(vg);</div>
<div class="line">*vgcanvas_scale(vg, scale_x, scale_y);</div>
<div class="line">*vgcanvas_rotate(vg, TK_D2R(15));</div>
<div class="line">*vgcanvas_intersect_clip_rect(vg, r.x, r.y, r.w, r.h);</div>
<div class="line">*..................</div>
<div class="line">*vgcanvas_restore(vg);</div>
</div><!-- fragment --><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">w</td><td>宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af8db0583e1905a0c72b13b0870a58d38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8db0583e1905a0c72b13b0870a58d38">&#9670;&nbsp;</a></span>IsPointInPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TVgcanvas::IsPointInPath </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>检查点是否在当前路径中。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示在，否则表示不在。 </dd></dl>

</div>
</div>
<a id="ae0e97e81a0cf8e3a542ec93df1663e26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0e97e81a0cf8e3a542ec93df1663e26">&#9670;&nbsp;</a></span>IsRectfInClipRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TVgcanvas::IsRectfInClipRect </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>bottom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>矩形区域是否在矩形裁剪中。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>矩形区域左边。 </td></tr>
    <tr><td class="paramname">top</td><td>矩形区域上边。 </td></tr>
    <tr><td class="paramname">right</td><td>矩形区域右边。 </td></tr>
    <tr><td class="paramname">bottom</td><td>矩形区域下边。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 TURE 则在区域中，返回 FALSE 则不在区域中。 </dd></dl>

</div>
</div>
<a id="a154dd9254aa7b4c1e694e4bd6dab2dc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a154dd9254aa7b4c1e694e4bd6dab2dc3">&#9670;&nbsp;</a></span>LineTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::LineTo </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成一条线段(从当前点到目标点)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9c0d31eb69398b195d4143e03a1fa6d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c0d31eb69398b195d4143e03a1fa6d5">&#9670;&nbsp;</a></span>MeasureText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TVgcanvas::MeasureText </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>测量文本的宽度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>text</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回text的宽度。 </dd></dl>

</div>
</div>
<a id="a04307255f89dbaa71898477d2257c970"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04307255f89dbaa71898477d2257c970">&#9670;&nbsp;</a></span>MoveTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::MoveTo </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>移动当前点到指定点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7f2dd9b173b9da2f15719a8694863e9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f2dd9b173b9da2f15719a8694863e9f">&#9670;&nbsp;</a></span>Paint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Paint </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>stroke</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_t_bitmap.html">TBitmap</a> &amp;&#160;</td>
          <td class="paramname"><em>img</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>用图片填充/画多边形(可能存在可移植性问题，除非必要请勿使用)。 多边形的顶点必须在图片范围内，可以通过矩阵变化画到不同的位置。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">stroke</td><td>TRUE表示画线FALSE表示填充。 </td></tr>
    <tr><td class="paramname">img</td><td>图片。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af61cd3dd4d904843c1d0c9e979c1b47c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af61cd3dd4d904843c1d0c9e979c1b47c">&#9670;&nbsp;</a></span>PathWinding()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::PathWinding </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>dir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置路径填充实心与否。</p>
<p>&gt;CCW(1)为实心，CW(2)为镂空，设置其他则默认根据非零环绕规则判断(nonzero)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td>填充方法。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4088321865d88a1f24902f4ae337d693"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4088321865d88a1f24902f4ae337d693">&#9670;&nbsp;</a></span>QuadTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::QuadTo </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>cpx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>cpy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成一条二次贝塞尔曲线。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cpx</td><td>控制点x坐标。 </td></tr>
    <tr><td class="paramname">cpy</td><td>控制点y坐标。 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a07feea57b3ba5566c341f1ff06d90f92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07feea57b3ba5566c341f1ff06d90f92">&#9670;&nbsp;</a></span>Rect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Rect </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成一个矩形路径。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">w</td><td>宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae12a84c37394b11f68b76e585cb22ef8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae12a84c37394b11f68b76e585cb22ef8">&#9670;&nbsp;</a></span>Restore()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Restore </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>恢复上次save的状态。</p>
<blockquote class="doxtable">
<p>save/restore必须配套使用，否则可能导致状态混乱。 </p>
</blockquote>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4692739271712eaec24aeabf3d43c566"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4692739271712eaec24aeabf3d43c566">&#9670;&nbsp;</a></span>Rotate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Rotate </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>rad</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>旋转。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rad</td><td>旋转角度(单位弧度)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a069e7639457908edfd9e37e804e83ac2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a069e7639457908edfd9e37e804e83ac2">&#9670;&nbsp;</a></span>RoundedRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::RoundedRect </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成一个圆角矩形路径。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">w</td><td>宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>高度。 </td></tr>
    <tr><td class="paramname">r</td><td>圆角半径。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a074352d2dbc7bc0e24470f0bd2d57790"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a074352d2dbc7bc0e24470f0bd2d57790">&#9670;&nbsp;</a></span>Save()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Save </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>保存当前的状态。如颜色和矩阵等信息。</p>
<blockquote class="doxtable">
<p>save/restore必须配套使用，否则可能导致状态混乱。 </p>
</blockquote>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8803bf0876568ea4abe87fd7cc68944f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8803bf0876568ea4abe87fd7cc68944f">&#9670;&nbsp;</a></span>Scale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Scale </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>缩放。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x方向缩放比例。 </td></tr>
    <tr><td class="paramname">y</td><td>y方向缩放比例。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a04ee2510e3ce41575ea38dc120ae88ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04ee2510e3ce41575ea38dc120ae88ff">&#9670;&nbsp;</a></span>SetAntialias()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetAntialias </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否启用反走样。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>是否启用反走样。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac1ae81672a3b230cb19c30f869735fa7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1ae81672a3b230cb19c30f869735fa7">&#9670;&nbsp;</a></span>SetFillColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetFillColor </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置填充颜色。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td>颜色。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af6c0e5d77bba67fb1a4efea9d33c6a62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6c0e5d77bba67fb1a4efea9d33c6a62">&#9670;&nbsp;</a></span>SetFont()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetFont </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置字体的名称。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">font</td><td>字体名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a634f4ea1ccab2c702a134054d3d56f42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a634f4ea1ccab2c702a134054d3d56f42">&#9670;&nbsp;</a></span>SetFontSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetFontSize </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置字体的大小。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>字体大小。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a113b766d6cb99eaddd791ca095930a16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a113b766d6cb99eaddd791ca095930a16">&#9670;&nbsp;</a></span>SetGlobalAlpha()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetGlobalAlpha </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>alpha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置全局透明度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">alpha</td><td>global alpha。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9043ed910653bb801719dae642bdbf03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9043ed910653bb801719dae642bdbf03">&#9670;&nbsp;</a></span>SetLineCap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetLineCap </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置line cap。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>取值：butt|round|square，必须为常量字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="abf0f4083b74ea9f71a5f514ec912ff67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf0f4083b74ea9f71a5f514ec912ff67">&#9670;&nbsp;</a></span>SetLineJoin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetLineJoin </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置line join。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>取值：bevel|round|miter，必须为常量字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1373d9f061e4c78e9a042c4b674b322b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1373d9f061e4c78e9a042c4b674b322b">&#9670;&nbsp;</a></span>SetLineWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetLineWidth </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置线条的宽度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>线宽。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab47443dde40a320efbb538c4d83ccfce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab47443dde40a320efbb538c4d83ccfce">&#9670;&nbsp;</a></span>SetMiterLimit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetMiterLimit </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置miter limit。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>miter limit</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a695215d68840f5d8d4d30edfa6006e1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a695215d68840f5d8d4d30edfa6006e1b">&#9670;&nbsp;</a></span>SetStrokeColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetStrokeColor </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置线条颜色。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>颜色。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad16bdbbca115556988f0d442d8d6b460"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad16bdbbca115556988f0d442d8d6b460">&#9670;&nbsp;</a></span>SetTextAlign()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetTextAlign </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置文本水平对齐的方式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>取值：left|center|right，必须为常量字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7d60da8b841152856c5b352361c1540a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d60da8b841152856c5b352361c1540a">&#9670;&nbsp;</a></span>SetTextBaseline()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetTextBaseline </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置文本垂直对齐的方式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>取值：top|middle|bottom，必须为常量字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4361859d7b511a8bfcfcdeac7b3ee169"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4361859d7b511a8bfcfcdeac7b3ee169">&#9670;&nbsp;</a></span>SetTransform()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::SetTransform </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置变换矩阵。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>a </td></tr>
    <tr><td class="paramname">b</td><td>b </td></tr>
    <tr><td class="paramname">c</td><td>c </td></tr>
    <tr><td class="paramname">d</td><td>d </td></tr>
    <tr><td class="paramname">e</td><td>e </td></tr>
    <tr><td class="paramname">f</td><td>f</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a280cbf1d9b4ef38763216f0ea9ea0c0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a280cbf1d9b4ef38763216f0ea9ea0c0a">&#9670;&nbsp;</a></span>Stroke()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Stroke </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>画线。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7d89dbb4ee1d187ae5353c3d233a9d49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d89dbb4ee1d187ae5353c3d233a9d49">&#9670;&nbsp;</a></span>Transform()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Transform </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>变换矩阵。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>a </td></tr>
    <tr><td class="paramname">b</td><td>b </td></tr>
    <tr><td class="paramname">c</td><td>c </td></tr>
    <tr><td class="paramname">d</td><td>d </td></tr>
    <tr><td class="paramname">e</td><td>e </td></tr>
    <tr><td class="paramname">f</td><td>f</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6a7f7a772b7bb7fac8a8ba2b4e54b797"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a7f7a772b7bb7fac8a8ba2b4e54b797">&#9670;&nbsp;</a></span>Translate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TVgcanvas::Translate </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>平移。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x方向偏移。 </td></tr>
    <tr><td class="paramname">y</td><td>y方向偏移。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
